package com.zky.gulimall.authserver.feign;

import com.zky.common.utils.R;
import com.zky.gulimall.authserver.vo.SocialUser;
import com.zky.gulimall.authserver.vo.UserLoginVo;
import com.zky.gulimall.authserver.vo.UserRegisterVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Description 会员远程服务
 * @Author 张开源
 * @Date 2022/11/23 4:41
 * @Version 1.0
 **/
@FeignClient("gulimall-member")
public interface MemberFeignService {
    @PostMapping("/member/member/register")
    R register(@RequestBody UserRegisterVo registerVo);

    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo loginVo);

    @PostMapping("/member/member/oauth2/login")
    R oauth2Login(@RequestBody SocialUser socialUser);
}
